package com.duan.blog.constants;


public enum CodeEnum {
    SUCCESS(200, "操作成功"),
    TOKEN_ERROR(1000, "token错误"),
    USER_INVALID_ERROR(1001, "当前用户无效"),
    NAME_PASSWORD_ERROR(1002, "用户名或密码错误")
    ;

    private final int code;
    private final String msg;

    CodeEnum(int code, String msg){
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
